
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<link type="text/css" rel="stylesheet" href="css/config.css" />
<link rel="stylesheet" type="text/css" href="reset.css" />
<link rel="stylesheet" type="text/css" href="structure.css" />
<script type="text/javascript" src="mobile.js"></script>

<h:head>
	<title>Rastreamento</title>
</h:head>
<f:view contentType="text/html">



</f:view>
<h:body>
<img src="./img/mapa.jpg" class="bg"/>

	<form class="box login">
		<div align="center">
			<h:graphicImage value="/img/logo.png" />
			<br></br>
			<table cellspacing="10" style="margin-top: 5px;">

				<tr>
					<td><p:lightBox>
							<h:outputLink value="#">
								<h:outputText value="Saiba como funciona" />
							</h:outputLink>

							<f:facet name="inline">
								<p:media value="http://www.rtarastreamento.com.br/Video.swf"
									width="800" height="600" player="flash" />
							</f:facet>
						</p:lightBox></td>
				</tr>

			</table>
			<h:form id="loginForm">
				<br></br>
				<br></br>
				<br></br>
				<h:outputText value="#{login.msg}" styleClass="error" />
				<h:panelGrid columns="1" id="loginGrid">


					<h:outputText value="Usuario:" />
					<p:inputText size="30" required="true" value="#{login.email}"
						id="logintxt" requiredMessage="Por favor insira o e-mail" />
					<p:message for="logintxt" display="text" />

					<h:outputText value="Senha:" />
					<p:password feedback="false" size="30" required="true"
						value="#{login.senha}" id="senhatxt"
						requiredMessage="Por favor insira a senha" />
					<p:message for="senhatxt" display="text" />

				</h:panelGrid>

				<br></br>

				<p:commandButton value="Entrar" ajax="false"
					action="#{login.principal}" update="loginGrid,loginForm">

				</p:commandButton>
				<br></br>
				<br></br>
				
				<p:lightBox>
							<h:outputLink value="#">
								<h:outputText value="Baixe versão para Android" />
							</h:outputLink>

							<f:facet name="inline">
								<p:graphicImage  value="/img/codigo.png"/>
							</f:facet>
						</p:lightBox>
				
		

			</h:form>
		</div>


	</form>


</h:body>

</html>